package pkmn.type;

public class Poison extends Type{

    public Poison(){
        this.setTypeEnum(TypeEnum.poison);
    }

    @Override
    public double effective(Type type){
        switch (type.getTypeEnum()){
            case grass:
                return 2.0;
            case ghost:
            case ground:
            case poison:
            case rock:
                return 0.5;
            case steel:
                return 0.0;
            default:
                return 1.0;
             
        }
    }
}